package com.pactera.madp.cp.api.dto.medium;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import com.pactera.madp.cp.api.validation.ToolInterface;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @description:素材库
 */
@ApiModel(value = "素材库")
@Data
public class MediumDto {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所有：type=0  文本：type=1  图片：type=2  图文：type=3  音频：type=4  视频：type=5  小程序：type=6  文件：type=7")
    @NotNull(groups = {ToolInterface.mediumStore.class},message = "类型不能为空")
    private Integer type;//类型 1文本、2图片、3音频、4视频、5小程序、6文件素材

    @ApiModelProperty(value = "具体内容")
    @NotNull(groups = {ToolInterface.mediumStore.class},message = "内容不能为空")
    private String  content;//具体内容:

    @ApiModelProperty(value = "素材分组id")
    @NotNull(groups = {ToolInterface.mediumStore.class},message = "素材分组ID不能为空")
    private Integer mediumGroupId;//素材分组ID
}
